/*
 * @Descripttion: 
 * @version: @ 1.0.0
 * @Author: 朱江洲
 * @Date: 2021-11-23 11:06:55
 * @LastEditors: 朱江洲
 * @LastEditTime: 2021-11-25 12:58:35
 */
import request from '@/utils/request'


//申请发票列表
export const invoiceList = params => {
    return request({
        method: 'get',
        url: '/personal/invoiceManage/invoiceList',
        params
    })
}
// 开具发票
export const applyInvoice = data => {
    return request({
        method: 'post',
        url: '/personal/invoiceManage/applyInvoice',
        data
    })
}
// 开票记录
export const billRecordList = params => {
    return request({
        method: 'get',
        url: '/personal/invoiceManage/billRecordList',
        params
    })
}


// 发票详情
export const invoiceInfo = params => {
    return request({
        method: 'get',
        url: '/personal/invoiceManage/invoiceInfo',
        params
    })
}
// 发票地址列表
export const invoiceAddressList = params => {
    return request({
        method: 'get',
        url: '/personal/invoiceManage/invoiceAddressList',
        params
    })
}
// - 发票地址增加
export const insertInvoiceAddress = data => {
    return request({
        method: 'post',
        url: '/personal/invoiceManage/insertInvoiceAddress',
        data
    })
}
// - 发票地址更新
export const updateInvoiceAddress = data => {
    return request({
        method: 'post',
        url: '/personal/invoiceManage/updateInvoiceAddress',
        data
    })
}
// 发票地址删除
export const deleteInvoiceAddress = data => {
    return request({
        method: 'post',
        url: '/personal/invoiceManage/deleteInvoiceAddress',
        data
    })
}
// 地址设为默认
export const setDefault = params => {
    return request({
        method: 'get',
        url: '/personal/invoiceManage/setDefault',
        params
    })
}

// 增值发票列表
export const vatInvoiceList = params => {
    return request({
        method: 'get',
        url: '/personal/invoiceManage/vatInvoiceList',
        params
    })
}

// 添加增值发票
export const insertVatInvoice = data => {
    return request({
        method: 'post',
        url: '/personal/invoiceManage/insertVatInvoice',
        data
    })
}
// 更新增值发票
export const updateVatInvoice = data => {
    return request({
        method: 'post',
        url: '/personal/invoiceManage/updateVatInvoice',
        data
    })
}
// 删除增值发票
export const deleteVatInvoice = data => {
    return request({
        method: 'post',
        url: '/personal/invoiceManage/deleteVatInvoice',
        data
    })
}

// 检验发票
export const checkInvoice = params => {
    return request({
        method: 'get',
        url: '/personal/invoiceManage/checkInvoice',
        params
    })
}
